import request from "@/utils/request";

export const getFriendChatList = (userId: number, targetId: number) => {
  return request.get("/message/list", {
    params: {
      targetId,
      userId,
    },
  });
};

export const getUnReadMessage = () => {
  return request.get("/chat/unread");
};

export const removeUnreadMessageList = (userId: number, targetId: number) => {
  return request.post("/message/read", {
    userId: userId,
    targetId: targetId,
  });
};
